Visual Studio CodeにPython開発環境を構築する
autoDocstring
njpwerner.autodocstring
Python
ms-python.python
Python Indent
kevinrose.vsc-python-indent
ツール
Pipenv
flake8
black
code:sh
pipenv install --dev black flake8
code:.vscode/settings.json
{
"python.venvPath": ".venv",
"python.pythonPath": ".venv/bin/python3.7",
"python.formatting.provider": "black",
"python.linting.enabled": true,
"python.linting.flake8Enabled": true,
"python.linting.flake8Args": [
"--max-complexity=20", // 循環的複雑度
"--max-line-length=120",
],
"python.linting.pylintEnabled": false,
}